using UnityEngine;
using System.Collections;

public class EventBack : MonoBehaviour {

	GUIButton button;
	
	public Camera mainMenuCamera;
	public Collider mainMenuPanelCollider;
	void Start ()
	{
		button = gameObject.GetComponent<GUIButton>();
		button.OnClickCallback += OnClick;
	}
	void OnClick(Vector3 pos){
		
		AttributesController.GetInstance().ShowGUI(false,false);
		mainMenuCamera.enabled = true;
		mainMenuPanelCollider.enabled = true;
	}
}
